<?php

namespace App\Module\Api\Validator;

use App\System\Base\Validator\BaseValidator;
use Illuminate\Http\Request;


class LoginValidator extends  BaseValidator
{
    protected $rules = [
        'q.a' => 'required|integer|between:1,2',
        'q.mobile' => 'required_if:q.a,2',
        'q.password' => 'required_if:q.a,2',

    ];

    protected $messages = [

    ];

    protected $attributes = [
        'q.a' => '请求类型',
        'q.mobile'=>'手机号',
        'q.password' => '密码',

    ];
}
